import request from '@/utils/myrequest'
export function getList(kvs) {
  return request({
    url: '/dms/TpirFt/GetList',
    method: 'get',
    kvs
  })
}
// 查询各种下拉框
export function getAllElementsList(kvs) {
  return request({
    url: '/dms/TpirFt/GetAllElementsList',
    method: 'get',
    kvs
  })
}

// 产品种类下拉框
export function getProductTypeList(kvs) {
  return request({
    url: '/dms/TpirFt/GetProductTypeList',
    method: 'get',
    kvs
  })
}

// 详情
export function getinfos(kvs) {
  return request({
    url: '/dms/TpirFt/Get',
    method: 'get',
    kvs
  })
}

// 各种级联下拉框
export function getTreeDataSelectList(kvs) {
  return request({
    url: '/dms/TpirFt/GetTreeDataSelectList',
    method: 'get',
    kvs
  })
}

// 获取主机名称
export function getHostList(kvs) {
  return request({
    url: '/dms/TpirFt/GetHostList',
    method: 'get',
    kvs
  })
}

// 保存
export function doUpdate(kvs) {
  return request({
    url: '/dms/TpirFt/Update',
    method: 'POST',
    kvs
  })
}

// 新增
export function doAdd(kvs) {
  return request({
    url: '/dms/TpirFt/Add',
    method: 'POST',
    kvs
  })
}
// 删除
export function doDelete(kvs) {
  return request({
    url: '/dms/TpirFt/Delete',
    method: 'POST',
    kvs
  })
}

// 是否提交审核
export function doOaCheck(kvs) {
  return request({
    url: '/dms/TpirFt/ExecOaCheck',
    method: 'get',
    kvs
  })
}

// 获取InstallType
export function getInstallTypeList(kvs) {
  return request({
    url: '/config/Common/GetEnumList',
    method: 'get',
    kvs
  })
}

// 获取ProgramPath路径
export function getProgramPath(kvs) {
  return request({
    url: '/dms/TpirFt/GetProgramPath',
    method: 'POST',
    kvs
  })
}
